<template>
  <router-view v-slot="{ Component }">
    <transition>
      <keep-alive>
        <component v-if="$route.meta.keepAlive" :is="Component" />
      </keep-alive>
    </transition>
    <transition>
      <component v-if="!$route.meta.keepAlive" :is="Component" />
    </transition>
  </router-view>
</template>

<script>

export default {
  name: 'App'
}
</script>

<style lang="less">
body{
  margin: 0;
  background-color: #f9f9f9;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  font-size: 14px;
}
.fixed-btn{
  width: 44px;
  height: 44px;
  box-shadow: @box-shadow;
  position: fixed;
  right: 20px;
  bottom: 50px;
  background-color: rgba(255,255,255,.5);
  font-size: 20px;
  text-align: center;
  line-height: 44px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
</style>
